<%size = Match.find(sid).bets.friends(current_user.all_friends).size%>
<%if size > 0%>
   <a href="#" onclick="toggle_expend(<%=sid%>);do_ajax(Ajax.FBML,'<%=@call_back_url%>','friends_bet',<%=sid%>);return false;" clicktoshow="indicator_<%=sid%>,render_layout_<%=sid%>" class="comments" id="friend_link_<%=sid%>"><span style="font-weight:bold"><%=pluralize(size,"Friend")%> <%=(size == 1 ? "has" : "have")%> bet</span></a>
<%else%>
    <%=render :partial=>'friends_bet/place_ch_link',:locals=>{:sid=>sid,:u=>nil}%>
<%end%>
